from random import randint

n = int(input())

counter: int = 0

xmax = max(-7, 5, 5, -7)
xmin = min(-7, 5, 5, -7)

ymax = max(-8, -8, 5, 5)
ymin = min(-8, -8, 5, 5)

for i in range(n):
    bullet_x = randint(-100, 100)
    bullet_y = randint(-100, 100)
    
    if bullet_x >= xmin and bullet_x <= xmax and bullet_y >= ymin and bullet_y <= ymax:
        counter += 1
    
print(f"кол-во выстрелов: {n}")
print(f"кол-во попаданий: {counter}")
